const express=require("express");
const app=express();

var bodyParser = require('body-parser')
const router =require("./router/router")
const cors = require("cors");

app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())

app.use("/",router)
app.use(cors())

// 监听服务器端口
app.listen(3001,()=>{
    console.log("服务器启动成功。。。")
})